home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 February / SGI IRIX 6.5 Complementary Applications 2004 February.iso / dist / cde.idb / usr / dt / share / man / cat3 / XmTextFindString.z / XmTextFindString
Encoding:
Text File  |  2003-11-18  |  3.9 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))      UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       _X_m_T_e_x_t_F_i_n_d_S_t_r_i_n_g - A Text function that finds    the beginning
  10.       position of a    text string
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       #include <Xm/Xm.h>
  14.  
  15.       Boolean XmTextFindString (wwwwiiiiddddggggeeeetttt,,,, ssssttttaaaarrrrtttt,,,, ssssttttrrrriiiinnnngggg,,,, ddddiiiirrrreeeeccccttttiiiioooonnnn,,,, ppppoooossssiiiittttiiiioooonnnn)
  16.            _W_i_d_g_e_t       wwwwiiiiddddggggeeeetttt;
  17.            _X_m_T_e_x_t_P_o_s_i_t_i_o_nssssttttaaaarrrrtttt;
  18.            _c_h_a_r       *ssssttttrrrriiiinnnngggg;
  19.            _X_m_T_e_x_t_D_i_r_e_c_t_i_o_nddddiiiirrrreeeeccccttttiiiioooonnnn;
  20.            _X_m_T_e_x_t_P_o_s_i_t_i_o_n*ppppoooossssiiiittttiiiioooonnnn;
  21.  
  22.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  23.       _X_m_T_e_x_t_F_i_n_d_S_t_r_i_n_g locates the beginning position of a
  24.       specified text string.  This routine searches    forward    or
  25.       backward for the first occurrence of the string starting
  26.       from the given start position. If it finds a match, the
  27.       function returns the position    of the first character of the
  28.       string in ppppoooossssiiiittttiiiioooonnnn.
  29.  
  30.       wwwwiiiiddddggggeeeetttt
  31.            Specifies the Text widget ID.
  32.  
  33.       ssssttttaaaarrrrtttt
  34.            Specifies the character position    from which the search
  35.            proceeds.  This is an integer number of characters from
  36.            the beginning of    the text buffer.  The first character
  37.            position    is 0.
  38.  
  39.       ssssttttrrrriiiinnnngggg
  40.            Specifies the search string.
  41.  
  42.       ddddiiiirrrreeeeccccttttiiiioooonnnn
  43.            Indicates the search direction.    It is relative to the
  44.            primary direction of the    text.  The possible values are
  45.  
  46.       _X_m_T_E_X_T__F_O_R_W_A_R_D
  47.            The search proceeds toward the end of the text buffer.
  48.  
  49.       _X_m_T_E_X_T__B_A_C_K_W_A_R_D
  50.            The search proceeds toward the beginning    of the text
  51.            buffer.    Specifies the pointer in which the first
  52.            character position of the string    match is returned.
  53.            This is an integer number of characters from the
  54.            beginning of the    buffer.     The first character position
  55.            is 0.  If the function returns False, this value    is
  56.            undefined.
  57.  
  58.       For a    complete definition of Text and    its associated
  59.       resources, see _X_m_T_e_x_t(_3_X).
  60.  
  61.  
  62.  
  63.      Page 1                        (printed 11/11/03)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))      UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV      XXXXmmmmTTTTeeeexxxxttttFFFFiiiinnnnddddSSSSttttrrrriiiinnnngggg((((3333XXXX))))
  71.  
  72.  
  73.  
  74.      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  75.       Returns True if a string match is found; otherwise, returns
  76.       False.
  77.  
  78.      RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
  79.       _X_m_T_e_x_t(_3_X) and _X_m_T_e_x_t_F_i_n_d_S_t_r_i_n_g_W_c_s(_3_X).
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                        (printed 11/11/03)
  130.  
  131.  
  132.  
  133.